<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>商品管理</title>
    <hdjs/>
    <bootstrap/>
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
    </style>
</head>
<body>
<div class="wrap">
    <table class="table table-bordered">
        <thead>
        <tr>
            
            <td>商品id</td>
            <td>商品名称</td>
            <td>商品价格</td>
            <td>商品缩略图</td>
            <td>操作</td>
        </tr>
        </thead>
        <tbody>
            <foreach from="$defaultData" value="$v">
                <tr sid="{$v.sid}">
                    
                    <td>{$v.sid}</td>
                    <td>{$v.shopname}</td>
                    <td>{$v.price}</td>
                    <td>
                    <div class="row" style="float:left;margin-top:5px;">
              <div class="col-xs-6 col-md-3">
                <a href="#" class="thumbnail">
                  <img src="__ROOT__/{$v.img}" >
                </a>
              </div>
            </div>
            </td>
                    <td width="200">
                        
                        <a href="{|U:'Shop/edit_cate',array('sid'=>$v['sid'])}" class="btn btn-default btn-xs">修改</a>
                        <a href="javascript:;" class="btn btn-default btn-xs" onclick="if(confirm('确定删除吗？')) location.href='{|U:'Shop/del',array('sid'=>$v['sid'],'mid'=>$v['mid'])}'">删除</a>
                    </td>
                </tr>
           </foreach>
        </tbody>
    </table>

    <div class="page_hdjob">
        
    </div>

</div>


</body>
</html>


